package com.imooc.spring.ioc;

import com.imooc.spring.ioc.entity.Apple;
import com.imooc.spring.ioc.entity.Child;

public class Application {
    public static void main(String[] args) {
        Apple apple1 = new Apple("红富士", "红色", "欧洲");
        Apple apple2 = new Apple("青苹果", "绿色", "中亚");
        Apple apple3 = new Apple("金帅", "黄色", "中国");
        Child lili = new Child("小明", apple1);
        Child zs = new Child("张山", apple2);
        Child xw = new Child("小王", apple3);
        lili.eat();
        zs.eat();
        xw.eat();
    }
}
